<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="RichSunfire">
    <link rel="shortcut icon" href="Template/2014/img/favicon.ico">
    <title><?=C('webtitle')?> - <?=C('webname')?> - <?=C('webkey')?></title>
    <!-- Bootstrap core CSS -->
	<link href="/style/user/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
	<link href="http://libs.useso.com/js/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- Morris -->
    <link href="/style/user/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
    <!-- Gritter -->
	<link href="/style/user/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/style/user/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
    <link href="/style/user/css/animate.css" rel="stylesheet">
    <link href="/style/user/css/style.css?v=2.2.0" rel="stylesheet">
  </head>

<body id="body">
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" role="navigation" style="position:fixed;top:0;left:0;">
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
							<span><img alt="image" class="img-circle" src="http://q1.qlogo.cn/g?b=qq&nk=<?=$userrow[qq]?>&s=160" style="width:60px;" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold"><?=$userrow[user]?></strong></span>
							<span class="text-muted text-xs block"><?php if(get_isvip($userrow[vip],$userrow[vipend])){ echo "VIP用户";}else{echo"免费用户";}?> UID：<?=$userrow[uid]?><b class="caret"></b></span> </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a href="set.php">系统设置</a></li>
								<li><a href="km.php">卡密列表</a></li>
                                <li><a href="jk.php">监控列表</a></li>
                                <li class="divider"></li>
                                <li><a href="/mgmt/logout.php">安全退出</a></li>
                            </ul>
                        </div>
						<div class="logo-element">
HTK
</div>
                    </li>
					<li <?php if(C('pageid')=='index'){ echo'class="active"';}?>>
					  <a href="javascript:;"><i class="fa fa-home"></i> <span class="nav-label">后台管理</span><span class="fa arrow"></span></a>
                       <ul class="nav nav-second-level">
                        <li><a href="/admin">后台首页</a></li>
                        <li><a href="/mgmt">用户中心</a></li>
						<li><a href="/deputy">副站后台</a></li>
						<li><a href="/mgmt/daili.php">代理后台</a></li>
                      </ul>
                  </li>
					
				  <li <?php if(C('pageid')=='km'){ echo'class="active"';}?>>
                      <a href="javascript:;"><i class="fa fa-th-list"></i> <span class="nav-label">卡密管理</span><span class="fa arrow"></span></a>
                       <ul class="nav nav-second-level">
                        <li><a href="km.php">余额卡密</a></li>
                      </ul>
                  </li>
                  <li <?php if(C('pageid')=='adminset' or C('pageid')=='template'){ echo'class="active"';}?>>
					  <a href="javascript:;"><i class="fa fa-cog"></i> <span class="nav-label">系统管理</span><span class="fa arrow"></span></a>
					  <ul class="nav nav-second-level">
                        <li><a href="set.php">网站设置</a></li>
						<li><a href="template.php">更换模版</a></li>
						<li><a href="ggset.php">公告管理</a></li>
						<li><a href="dgset.php">代挂设置</a></li>
                      </ul>
                  </li>
				  <?php if($isdomain){}else{?>
				  <li <?php if(C('pageid')=='adminfz'){ echo'class="active"';}?>>
					  <a href="javascript:;"><i class="fa fa-cogs"></i> <span class="nav-label">分站管理</span><span class="fa arrow"></span></a>
                       <ul class="nav nav-second-level">
                        <li><a href="fzlist.php">分站列表</a></li>
                        <li><a href="addfz.php">添加分站</a></li>
                      </ul>
                  </li>
				  <?php } ?>
				  <li <?php if(C('pageid')=='adminuser' or C('pageid')=='adminqq'){ echo'class="active"';}?>>
					  <a href="javascript:;"><i class="fa fa-user"></i> <span class="nav-label">用户管理</span><span class="fa arrow"></span></a>
                       <ul class="nav nav-second-level">
                        <li><a href="ulist.php">用户列表</a></li>
                        <li><a href="qlist.php">QQ列表</a></li>
                      </ul>
                  </li>
				  <li <?php if(C('pageid')=='update' or C('pageid')=='admincron'){ echo'class="active"';}?>>
					  <a href="javascript:;"><i class="fa fa-cloud"></i> <span class="nav-label">其他管理</span><span class="fa arrow"></span></a>
                       <ul class="nav nav-second-level">
					   <?php if($isdomain){}else{?>
                        <li><a href="update.php">程序升级</a></li>
						<?php } ?>
                        <li><a href="jk.php">监控说明</a></li>
						<li><a href="lianxi.php">联系作者</a></li>
                      </ul>
                  </li>
                  <li>
                      <a href="/mgmt/logout.php">
                          <i class="fa fa-power-off" style="width:20px;"></i>
                          <span>退出登录</span>
                      </a>
                  </li>
                </ul>

            </div>
        </nav>

        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
</div>
<ul class="nav navbar-top-links navbar-right">
<li>
<li class="dropdown hidden-xs">
<a href="/mgmt/logout.php" onClick="if(!confirm('你真的想退出登录？')){return false;}">
<i class="fa fa-sign-out"></i> 退出
</a>
</li>
</ul>
</nav>
            </div>
		
<!-- end -->

<?php
if(!$index){
?><div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
      <h2><?=C('webtitle')?></h2>
      <ol class="breadcrumb">
        <li> <a href="/admin">后台管理</a>
        </li>
        <li> <strong><?=C('webtitle')?></strong>
        </li>
      </ol>
    </div>
    <div class="col-lg-2"></div>
  </div>
 <?php
}
?>
